﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InTheHand.Net.Sockets;

namespace ConsoleAppBlue
{
    internal class BluetoothCommunication
    {
        public BluetoothCommunication()
        {
            BluetoothClient client = new BluetoothClient();
            var deviceInfos = client.DiscoverDevices();

            foreach (var deviceInfo in deviceInfos)
            {
                Console.WriteLine("{0} - {1}", deviceInfo.DeviceName, deviceInfo.DeviceAddress);
            }
        }
    }
}
